package com.finance.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.BalanceMapper;
import com.finance.entity.Balance;

@Service("BalanceService")
public class BalanceService {

	@Resource(name = "BalanceMapper")
	private BalanceMapper balanceMapper;

	public void insert(Balance record){
		balanceMapper.insert(record);
	}
	
	public Balance selectByPrimaryKey(String userId){
		return balanceMapper.selectByPrimaryKey(userId);
	}
	
	public void updateByPrimaryKeySelective(Balance record){
		balanceMapper.updateByPrimaryKeySelective(record);
	}
}
